package vip.meeet.tool.guava.listener;

import com.google.common.eventbus.Subscribe;
import vip.meeet.tool.guava.event.ChargeEvent;

import java.util.concurrent.TimeUnit;

public class CommonListener {

    @Subscribe
    public void dealChargeGold(ChargeEvent event){
        try {
            TimeUnit.SECONDS.sleep(5);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("处理gold");
    }

    @Subscribe
    public void dealChargeLevel(ChargeEvent event){
        System.out.println("处理level");
    }
}
